package com.itboye.mengwu.app.ui.mymeng;

import java.util.Date;

import android.R.layout;
import android.provider.ContactsContract.CommonDataKinds.Event;
import android.text.Layout;
import android.text.format.Time;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.itboye.core.object.BaseActivity;
import com.itboye.mengwu.R;

public class ActivityImageDetatil extends BaseActivity {
	RelativeLayout head;
	ImageView back;
	TextView txt_title;
	TextView text;
	RelativeLayout botom_lin;
	TextView care;//
	TextView discuss;
	TextView care_num;
	TextView discuss_num;
	ImageView image;

	@Override
	public int initView() {
		// TODO Auto-generated method stub
		return R.layout.activity_bigimage;
	}

	@Override
	public void onMyCreate() {
		// TODO Auto-generated method stub
		txt_title.setText("5月12");
		image.setScaleType(ScaleType.FIT_XY);
		back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
		image.setOnClickListener(new OnClickListener() {
			boolean isDown = true;

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				if (isDown) {
					botom_lin.setVisibility(View.VISIBLE);
					head.setVisibility(View.VISIBLE);

				} else {
					botom_lin.setVisibility(View.GONE);
					head.setVisibility(View.GONE);
				}
				isDown = !isDown;
			}
		});
	}

}
